package test;

import java.util.Scanner;

import de.fhhof.robot.control.IMessage;
import de.fhhof.robot.control.Message;
import de.fhhof.robot.control.MessageIdGenerator;
import de.fhhof.robot.control.net.Connection;
import de.fhhof.robot.control.net.IConnection;



public class JsapToControlTest4 {

	public static void main(String args[]){
		
		try{
/*			System.out.println(" assembly process state Test ");

			IConnection server = new  Connection(8000,"JS","ST");

			
			IMessage msgB = new Message("K000","yyy------------------------------------------------------------");
			server.send(msgB);
			
			IMessage msg11 =server.receive();
			IMessage msg21 = server.receive();
			System.out.println("cmd: "+msg11.getCommand() + " payload: " + msg11.getPayload());
			System.out.println("cmd: "+msg21.getCommand() + " payload: " + msg21.getPayload());
			
			Thread.sleep(20000000);*/

			for(int i =0; i<200;i++){
				System.out.println(" message "+i +" th: "+ MessageIdGenerator.getNextMessageId());
			}

			
		}
		catch(Exception ex){
			ex.printStackTrace();
		}
	}
}
